package homework;

/**
 * @classname:ProductThread
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/19 22:31
 * @version: 0.1
 * @since:1.8
 */
public class ProductThread extends Thread {
    private StringPool stringPool;
    @Override
    public void run() {
        while (true){
            stringPool.createStr();
        }
    }

    public ProductThread(String name, StringPool stringPool) {
        super(name);
        this.stringPool = stringPool;
    }
}
